
package com.shycloud.mido.member.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shycloud.mido.member.api.entity.MemberStudentInfo;
import com.shycloud.mido.member.mapper.MemberStudentInfoMapper;
import com.shycloud.mido.member.service.MemberStudentInfoService;

/**
 * 考级信息
 *
 * @author lxy
 * @date 2019-03-01 09:54:48
 */
@Service
public class MemberStudentInfoServiceImpl extends ServiceImpl<MemberStudentInfoMapper, MemberStudentInfo> implements MemberStudentInfoService {

	/**
	 * 通过会员id查询考级信息
	 *
	 * @param memberId memberId
	 * @return
	 */
	@Override
	public MemberStudentInfo getByMemberId(String memberId) {
		QueryWrapper<MemberStudentInfo> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("member_id", memberId);
		return baseMapper.selectOne(queryWrapper);
	}
}
